class Animal(object):
    def __init__(self,name,age):
        self.name = name
        self.age = age
    def run(self):
        print("用四肢或者两肢跑步")

class Dog(Animal):
    def run(self):
        print("狗使用四肢跑路的")
    pass

dog = Dog("zs",20)
print(dog.name)
print(dog.age)
dog.run()